/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.fb.visualization.types;

import com.restfb.types.Location;
import com.restfb.types.Place;

/**
 *
 * @author Mato
 */
public class Town extends Location
{
    private String id;
    private String city;
    private String country;
    private Double longtitude;
    private Double latitude;
    
    public Town(String id, String city, String country, double longtitude, double latitude)
    {
        this.id = id;
        this.city = city;
        this.country = country;
        this.longtitude = longtitude;
        this. latitude = latitude;
    }
    
    public String getId()
    {
        return id;
    }
    
    @Override
    public String getCity()
    {
        return city;
    }
    
    @Override
    public String getCountry()
    {
        return country;
    }
    
    @Override
    public Double getLongitude()
    {
        return longtitude;
    }
    
    @Override
    public Double getLatitude()
    {
        return latitude;
    }
    
    /*@Override
    public boolean equals(Object o )
    {
        if(!(o instanceof Friend))
        {
            return false;
        }
        return super.getId().equals(((Friend) o).getId());
    }
   
    @Override
    public int hashCode()
    {
        
        return super.getId().hashCode();
    }*/
}
